/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.command;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.Drone;

/**
 *
 * @author Nikzzay
 */
public class ExecutorException extends Exception {
    private Drone  D;
    private String cause;

    public ExecutorException(String cause, Drone D) {
        this.cause = cause;
        this.D     = D;
    }

    @Override
    public String toString() {
        return cause;
    }

    public Drone getDrone() {
        return D;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
